#ifndef _SWIOXI_H
#define _SWIOXI_H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "swlog.h"

#include <unistd.h>
#include <fcntl.h>

#define POWERBASE 0x80000000



void SwioxiOut16(uint64_t phyaddr, uint16_t val);
int SwioxiIn16(uint64_t phyaddr);
void SwioxiOut32(uint64_t phyaddr, uint32_t val);
unsigned int Swioxiln32(uint64_t phyaddr);

void SwioxiSetGpioReg(unsigned int addrBase,unsigned int addrOffset,unsigned int value);

int SwioxiCtrlPower(unsigned char slotNum,int option);


#endif
